<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">


<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</h:head>
<h:body>

<ui:composition template="/pres/index.xhtml">

<ui:define name="toolbar"/>

<ui:define name="corpo">

<center>
	<h:form>
			<rich:dataTable id="mercadoLogs" rows="10" value="#{mercadoLogManagedBean.mercadoLogs}" var="mercadoLog" border="1">
				<f:facet name="header">
					<h:outputText value="#{msg.logsSistema}" />
				</f:facet>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msg.entidade}"/>
					</f:facet>
					<h:outputText value="#{mercadoLog.logger}" />
				</rich:column>
				
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msg.nivel}" />
					</f:facet>
					<h:outputText value="#{mercadoLog.level}" />
				</rich:column>		
				
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msg.mensagem}" />
					</f:facet>
					<h:outputText value="#{mercadoLog.message}" />
				</rich:column>			
				
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Data" />
					</f:facet>
					<h:outputText value="#{mercadoLog.data}" />
				</rich:column>						
				
				<f:facet name="footer">
					<rich:dataScroller for="mercadoLogs" maxPages="5"/>
				</f:facet>
			</rich:dataTable>
		</h:form>
</center>
</ui:define>
</ui:composition>	
</h:body>
</html>